﻿using System;
using System.ComponentModel.DataAnnotations;

namespace DataModel.Models
{
    public class LessonRequest
    {
        public Guid Lessonid { get; set; }

        [UIHint("Group")]
        [DisplayFormat(NullDisplayText = "select group")]
        public Guid[] GroupId { get; set; }

        [UIHint("Subject")]
        [Display(Name = "Subject")]
        [DisplayFormat(NullDisplayText = "select subject")]
        public Guid Subjectid { get; set; }

        [UIHint("Professor")]
        [Display(Name = "Professor")]
        [DisplayFormat(NullDisplayText = "select professor")]
        public Guid Professorid { get; set; }

        [UIHint("Auditory")]
        [Display(Name = "Auditory")]
        [DisplayFormat(NullDisplayText = "select auditory")]
        public Guid Auditoryid { get; set; }

        [UIHint("Time")]
        [Display(Name = "Begin Time")]
        public DateTime BeginTime { get; set; }

        [UIHint("Time")]
        [Display(Name = "End Time")]
        public DateTime EndTime { get; set; }

        [UIHint("LessonType")]
        [Display(Name = "LessonType")]
        [DisplayFormat(NullDisplayText = "select lessontype")]
        public Guid Lessonypeid { get; set; }

        [UIHint("WeekDay")]
        [Display(Name = "Week Day")]
        [DisplayFormat(NullDisplayText = "select weekday")]
        public short Weekday { get; set; }

        public int periodicity { get; set; }

        //[UIHint("PeriodicityMask")]
        [Display(Name = "Periodicity Mask")]
        public bool[] Periodicitymask { get; set; }

        [UIHint("Date")]
        [Display(Name = "End Date")]
        public DateTime Begindate { get; set; }

        [UIHint("Date")]
        [Display(Name = "End Date")]
        public DateTime Enddate { get; set; }

        [Display(Name = "Semester")]
        public int Semester { get; set; }
    }
}